<%-- 
    Document   : _template_Post
    Created on : 5-mei-2012, 21:33:27
    Author     : Niels Leguit <niels.leguit at hva.nl>
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="tl" tagdir="/WEB-INF/tags/" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
    <body> 
        <div class="post">
            <h2 class="title">Openstaande inschrijvingen</h2>
            <div class="story">
      
                <c:choose>
                    <c:when test="${aantalRitten != 0}">
                        <table>
                            <tr>
                                <th align="left" width="15%"><b>Datum</b></th>
                                <th align="left" width="10%"><b>Tijd</b></th>
                                <th align="left" width="20%"><b>Van</b></th>
                                <th align="left" width="5%"><b></b></th>
                                <th align="left" width="20%"><b>Naar</b></th>
                                <th width="5%"><b></b></th>
                                
                            </tr>
                            <c:forEach var="tempRitten" items="${ritten}" varStatus="loop">
                                <tr class="${loop.index % 2 == 0 ? 'even' : 'odd'}">
                                    <td><fmt:formatDate value="${tempRitten.ritDatum}" pattern="dd/MM/yyyy"/></td>
                                    <td><fmt:formatDate value="${tempRitten.ritTijd}" pattern="HH:mm"/></td>
                                    <td>${tempRitten.ritVanPlaats}</td>
                                    <td><tl:LocToLoc /></td>
                                    <td>${tempRitten.ritNaarPlaats}</td>

                                    <td>
                                        <a href="MijnInschrijvingen?minimapinfo=${tempRitten.ritId}"><img src="images/icons/16/094.png" title="de route"/></a> 
                                    </td>
                                </tr>
                            </c:forEach>
                        </table>
                    </c:when>
                    <c:otherwise>
                        <b>Op dit moment zijn er geen openstaande inschrijvingen</b>
                    </c:otherwise>
                </c:choose>    
            </div>
        </div>
    </body>
</html>
